<template>
  <c-log-tabs :source-id="$route.query.id">
    <div class="detail">
      <c-section title="软装陈列基本信息">
        <c-list :column="3">
          <c-list-item label="门店编码" :value="detail.shopCode" />
          <c-list-item label="门店" :value="detail.shopName" />
          <c-list-item label="所属客户编码" :value="detail.clientCode" />
          <c-list-item label="所属客户" :value="detail.clientName" />
          <c-list-item label="所属办事处" :value="detail.officeName" />
          <c-list-item label="门店类型" dict-type-code="SHOP_TYPE" :value="detail.shopType" />
          <c-list-item label="门店业务类型" dict-type-code="BIZ_TYPE" :value="detail.shopBizType" />
          <c-list-item label="门店城市级别" dict-type-code="CITY_LEVEL" :value="detail.shopCityLevel" />
          <c-list-item label="门店详细地址" :value="detail.shopAddress" :span="3" />
          <c-list-item label="门店建设项目号" :value="detail.constCode" />
          <c-list-item label="报图类型" dict-type-code="MARKET_TYPE" :value="detail.marketType" />
          <c-list-item label="门店建设类型" dict-type-code="CONST_TYPE" :value="detail.constType" />
          <c-list-item label="商家类别" dict-type-code="BIZMAN_TYPE" :value="detail.bizmanType" />
          <c-list-item label="装修形式" dict-type-code="DECORATION_FORM" :value="detail.decorationForm" />
          <c-list-item label="门店建设范围" dict-type-code="DECORATION_RANGE" :value="detail.decorationRange" />
          <c-list-item label="本次装修范围" dict-type-code="DECORATION_RANGE" :value="detail.range" />
          <c-list-item label="装修任务号" :value="detail.decorationTaskCode" />
          <c-list-item label="项目启动会召开时间" :value="detail.proStartMeetingTime" />
          <c-list-item label="形象督导" :value="detail.formSupervisorName" />
          <c-list-item label="卖场装修区域" :value="$getAreaName(detail.shopDecorationArea)" />
          <!-- <c-list-item label="卖场装修总面积" suffix="m²" :value="detail.shopDecorationTotalArea || 0" /> -->

          <c-list-item label="门头装修总面积" suffix="m²" :value="detail.dheadDecorationTotalArea || 0" />
          <c-list-item label="卖场装修总面积" suffix="m²" :value="detail.shopDecorationTotalArea || 0" />
          <c-list-item label="门头实际验收面积" suffix="m²" :value="detail.acceptDheadTotalArea || 0" />
          <c-list-item label="卖场实际验收面积" suffix="m²" :value="detail.acceptShopTotalArea || 0" />

          <!-- <c-list-item label="简装图纸总面积" suffix="m²" :value="detail.shopSimpleTotalArea || 0" /> -->
          <c-list-item label="软装陈列开始时间" :value="detail.displayStartTime" />
          <c-list-item label="初检时间" :value="detail.initInspectionTime" />
          <c-list-item label="初检结果" dict-type-code="BOOLEANS" :value="detail.initInspectionResult" />
          <c-list-item label="复检时间" :value="detail.reinspectionTime" />
          <c-list-item label="复检结果" dict-type-code="BOOLEANS" :value="detail.reinspectionResult" />
          <c-list-item label="结案类型" dict-type-code="DECORATION_CLOSED_TYPE" :value="detail.acceptEndType" />
          <c-list-item label="验收任务号" :value="detail.acceptTaskCode" />
          <c-list-item label="实际报验时间" :value="detail.actualInspectionTime" />
          <!-- <c-list-item label="结案类型" dict-type-code="DECORATION_CLOSED_TYPE" :value="detail.XXXXXXXXX" /> -->
          <!-- <c-list-item label="应整改完成时间" :value="detail.mustRectifyEndTime" /> -->
          <c-list-item label="验收结案时间" :value="detail.acceptEndTime" />
        </c-list>
      </c-section>
      <c-section title="软装陈列附件">
        <c-file-table-box :editable="false" :model-id="this.$route.query.id" />
      </c-section>
    </div>
  </c-log-tabs>
</template>

<script>
import { getDetail } from '@/api/softDecorate'
export default {
  name: 'SoftDecorateDetail',
  components: {
  },
  data() {
    return {
      detail: {}
    }
  },
  created() {
    this.getDetail()
  },
  methods: {
    getDetail() {
      const { id } = this.$route.query
      getDetail(id).then(res => {
        this.detail = res.data
      })
    }
  }
}
</script>
<style lang="scss" scoped>
.detail{

}
</style>
